package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hecai
 * @date 2021/12/17 17:36
 */

/**
 * 评论
 */
@ApiModel(value = "com-hc-domain-Comment")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_comment")
public class Comment implements Serializable {
    private static final long serialVersionUID = -687559167261895354L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    /**
     * 图片，最多5张 [aa.jpg,bb.jpg,cc.jpg]
     */
    @TableField(value = "pics")
    @ApiModelProperty(value = "图片，最多5张 [aa.jpg,bb.jpg,cc.jpg]")
    private String pics;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "评论内容")
    private String content;

    /**
     * 星级：1~5
     */
    @TableField(value = "stars")
    @ApiModelProperty(value = "星级：1~5")
    private Integer stars;

    /**
     * 其他用户对这条评论的评论个数
     */
    @TableField(value = "comments")
    @ApiModelProperty(value = "其他用户对这条评论的评论个数")
    private Integer comments;

    /**
     * 其他用户对这条评论的点赞个数
     */
    @TableField(value = "agrees")
    @ApiModelProperty(value = "其他用户对这条评论的点赞个数")
    private Integer agrees;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    /**
     * 订单编号
     */
    @TableField(value = "order_id")
    @ApiModelProperty(value = "订单编号")
    private String orderId;
    /**
     * sku编号
     */
    @TableField(value = "`sku_id`")
    @ApiModelProperty(value = "sku编号")
    private Integer skuId;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 评论时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;

}